package community.hospital.entity.request;

import community.hospital.annotation.IsPhone;
import community.hospital.common.Add;
import community.hospital.common.BaseIndex;
import community.hospital.common.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @author yindingjie
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DoctorRequest extends BaseIndex implements Serializable {

    private static final long serialVersionUID = 2178233606533021777L;
    @NotBlank(groups = {Add.class, Update.class},message = "医生姓名不能为空")
    private String name;

    @NotBlank(groups = {Add.class, Update.class},message = "医生职称不能为空")
    private String profession;

    /**
     * 性别（男：女）
     */
    @NotBlank(groups = {Add.class, Update.class},message = "性别不能为空")
    private String gender;

    /**
     * 所属医院id
     */
    @NotNull(groups = {Add.class, Update.class},message = "请选择所属医院")
    private Long hospitalId;

    /**
     * 医生描述
     */
//    @NotBlank(groups = {Add.class, Update.class},message ="个人简介不能为空")
    private String description;
    @NotNull(groups = {Add.class,Update.class},message = "请选择科室信息")
    private Long department1Id;

//    @NotNull(groups = {Add.class,Update.class},message = "请选择科室信息")
    private Long department2Id;

    /**
     * 联系电话
     */
    @IsPhone
    @NotBlank(groups = {Add.class, Update.class},message ="电话不能为空")
    private String phone;
    @NotNull(groups = {Add.class, Update.class},message = "请输入挂号量")
    private Integer registerQuantity;

    @NotNull(groups = {Add.class, Update.class},message = "请输入挂号费")
    private Integer price;


}
